//封装各个模块的请求接口方法
import request from './request'
// import mock from './requestMock'

//封装一个登录的请求接口方法
export const login = (data)=>request.login('/login/checklogin',data);
//退出登录
export const logout = ()=>request.get("/login/logout");

// 获取系统账号列表
export const getSystemAccount = (params)=>request.get("/system/user/get",params)
//删除系统账号
export const deleteSystemAccount = (params)=>request.get("/system/user/delete",params);
// 获取角色列表
export const getRoleList = ()=>request.get("/system/role/get")
export const getRouteList= ()=>request.get("/system/route/getAll")

//获取前端路由
export const getSystemRoute = ()=>request.get("system/route/get");